package Encapsulation;

public class EncapTest{
    private String name;
    private String idNum;
    private int age;

    public int getAge(){
        return age;
    }

    public String getName(){
        return name;
    }

    public String getIdNum(){
        return idNum;
    }

    public void setAge( int newAge){
        age = newAge;
    }

    public void setName(String newName){
        name = newName;
    }

    public void setIdNum( String newId){
        idNum = newId;
    }

    public static void main(String args[]){
        EncapTest encap = new EncapTest();

        encap.setName("James");
        encap.setAge(34);
        encap.setIdNum("12343ms");

        System.out.print("Name : " + encap.getName()
                + ",Age : " + encap.getAge()
                + ",IdNum : " + encap.getIdNum());
    }
}